/*html5*/
article,aside,dialog,footer,header,section,footer,nav,figure,menu{display:block}
/* 基本变量 */
@primary-color: #1968d1;
@default-color: #333;
@text-color: #666;
@muted-color: #999;

@border-line-color: #c5c5c5;
@base-background-color: #fafafa;

@nav-height: 82px;
@footer-height: 100px;

@content-width: 1100px;

::-webkit-input-placeholder {
  color: #999;
}
:-moz-placeholder {
  color: #999;
}
::-moz-placeholder {
  color: #999;
}
:-ms-input-placeholder {
  color: #999;
}

a {
  color: @primary-color;

  &:hover {
    opacity: .95;
  }
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 24px;
}

/* 基础公共样式 */
body {
  background: @base-background-color;
  color: @default-color;
  font-family : "Microsoft YaHei", "Helvetica Neue", Helvetica, STHeiTi, sans-serif;
}

.pr {
  float: right !important;
}

.pl {
  float: left !important;
}

.tc {
  text-align: center !important;
}

.text-input {
  background: #fff;
  height: 30px;
  padding: 10px 20px;
  border-radius: 4px;
  position: relative;
  z-index: 10000;
  behavior: url(ie-css3.htc);
  border: none;
}

.margin-t-20 {
  margin-top: 20px;
}

.margin-l-20 {
  margin-left: 20px;
}

.margin-r-20 {
  margin-right: 20px !important;
}

.margin-b-20 {
  margin-bottom: 20px;
}

.margin-t-30 {
  margin-top: 30px;
}

.margin-t-70 {
  margin-top: 70px;
}

.clearfix {
  clear: both;

  &:before {
    display: table;
    content: " ";
  }

  &:after {
    clear: both;
    display: table;
    content: " ";
  }
}

.btn {
  display: inline-block;
  font-size: 16px;
  border-radius: 4px;
  position: relative;
  z-index: 10000;
  behavior: url(ie-css3.htc);
  color: #fff;
  padding: 10px 20px;
  .tc;
  background: @primary-color;
  border: none;

  &:hover {
    text-decoration: none;
    cursor: pointer;
    background: lighten(@primary-color, 10%);

  }
}

.btn-block {
  display: block;
}


/* base grid */
.row {
  padding: 0 20px;
  width: @content-width - 40 !important;
  margin: 0 auto;
}
.col-left {
  .pl;
  width: 740px;
  background: #fff;
  border-radius: 4px;
  position: relative;
  z-index: 10000;
  behavior: url(ie-css3.htc);
}

.col-right {
  .pl;
  .margin-l-20;
  width: 300px;
  background: #fff;
  border-radius: 4px;
  position: relative;
  z-index: 10000;
  behavior: url(ie-css3.htc);
}

.content-container {
  width: @content-width;
  margin: 0 auto;
}

.content-container-bg {
  background: url(../img/container-bg.jpg) no-repeat center -80px;
}

.top-nav {
  height: @nav-height;
  background-color: #fff;
}

.footer-nav {
  background-color: @primary-color;
  height: 100px;
  line-height: 100px;
  color: #fff;
  .tc;
  .margin-t-70;
}

.logo {
  background: url(../img/logo.png) no-repeat;
  width: 168px;
  height: 27px;
  text-indent: -10000em;
  margin-top: 27px;
  .pl;
}

.nav-links {
  .pr;
  height: 14px;
  margin-top: 33px;
  margin-right: -33px;

  li {
    .pl;
    border-right: 1px @border-line-color solid;
    height: 14px;
    line-height: 14px;
    padding: 0 32px;
    position: relative;

    &.noborder {
      border-right: none;
    }

    a {
      color: @default-color;
      i {
        position: absolute;
        width: 4px;
        height: 4px;
        top: -3px;
        right: 27px;
        border-radius: 4px;
        background: red;
        display: block;
      }
    }
  }
}

.avatar {
  float: left;
  width: 80px;
  height: 80px;
  border-radius: 80px;
  position: relative;
  z-index: 10000;
  behavior: url(ie-css3.htc);
  margin-right: 20px;
  border: 1px solid #e4e7eb;
}

.line {
  border-bottom: 1px solid #e4e7eb;
}

.pagging-list {
  text-align: center;

  li {
    width: 35px;
    height: 35px;
    margin-right: 14px;
    line-height: 35px;
    font-size: 16px;
    color: #666;
    text-align: center;
    border-radius: 2px;
    position: relative;
    z-index: 10000;
    behavior: url(ie-css3.htc);
    border: 1px solid #e4e7eb;
    display: inline-block;
    background-color: #fafafa;
    cursor: pointer;

    &.current {
      color: #fff;
      background-color: #1968d1;
    }

    &.ellipsis {
      border: none;
      text-align: right;
      width: 15px;
      margin-left: -4px;
      margin-right: 5px;
      cursor: default;
    }

    &.first-child {
      background-image: url('../img/arrow-left.png');
      background-repeat: no-repeat;
      background-position: 13px 11px;
    }

    &.first-child.disable {
      background-image: url('../img/arrow-left-disable.png');
    }
  }
}
